package socket;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

public class Servidor {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SocketServidor frame = new SocketServidor(5555);
		frame.setTitle("Programa servidor");
		WindowListener l = new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		};
		frame.addWindowListener(l);
		frame.pack();
		frame.setVisible(true);
		frame.listenSocket();
	}

}
